package top.healthylife.gateway.platform.eye.dto.gongshangxinxi.EyeReqIcVerifyDto.req;

import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import top.healthylife.gateway.dto.annotation.ApiField;
import top.healthylife.gateway.dto.processor.GroupOneMustBeFilledInProcessor;
import top.healthylife.gateway.dto.request.req.ApiReqDto;

import javax.validation.constraints.NotNull;

/**
* @author: GenUtil
* @date: 2020-12-15 00:02:20
*/
@Data
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = true)
@ApiModel("企业三要素验证[1042]")
public class EyeReqIcVerifyDto extends ApiReqDto {

    @ApiField(value = "三码(注册号 /组织机构代码 /统一社会信用代码)", necessity = true)
    @JsonProperty("code")
    @ApiModelProperty(name = "三码(注册号 /组织机构代码 /统一社会信用代码)", example = "91110000802100433B")
    private String code;

    @ApiField(value = "公司名", necessity = true, group = GroupOneMustBeFilledInProcessor.class)
    @NotNull(message = "公司名")
    @JsonProperty("name")
    @ApiModelProperty(name = "公司名", example = "北京百度网讯科技有限公司")
    private String name;

    @ApiField(value = "法人", necessity = true)
    @JsonProperty("legalPersonName")
    @ApiModelProperty(name = "法人", example = "梁志祥")
    private String legalPersonName;

}
